package com.ruoyi.constant.v3;

/**
 * 任务类型枚举
 */
public enum KqlxV3Enum {

    CKQ(1, "采矿权"),
    TKQ(2, "探矿权"),
    JZKCQ(3, "集中开采区");

    private Integer code;
    private String desc;

    KqlxV3Enum(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public Integer getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }

    public static String getDescByCode(Integer code) {
        for (KqlxV3Enum value : KqlxV3Enum.values()) {
            if (value.getCode().equals(code)) {
                return value.getDesc();
            }
        }
        return "";
    }
}
